import xrRequest from '../index';
import type { IAadmin } from './types';
import { BASE_URL } from '../request/config';

enum LoginAPI {
    AdminList = '/admin/list',
    addAdmin = '/admin/add'
}

export function getAdministratorsList({}) {
    return xrRequest.post<IAadmin>({
        url: BASE_URL + LoginAPI.AdminList,
        data: {},
    });
}
